package com.atguigu.gulimall.order.vo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class SpuInfoVo implements Serializable {

    private static final long serialVersionUID = 1L;

	private Long id;
	/**
	 * 商品名称
	 */
	private String spuName;
	/**
	 * 商品描述
	 */
	private String spuDescription;
	/**
	 * 所属分类id
	 */
	private Long catalogId;
	/**
	 * 品牌id
	 */
	private Long brandId;
	/**
	 * 
	 */
	private BigDecimal weight;
	/**
	 * 上架状态[0 - 下架，1 - 上架]
	 */
	private Integer publishStatus;

    /**
     * com.fasterxml.jackson.databind.exc.InvalidFormatException:
     * Cannot deserialize value of type `java.util.Date` from String
     * "2024-02-20 15:25:38": not a valid representation (error:
     * Failed to parse Date value '2024-02-20 15:25:38': Cannot
     * parse date "2024-02-20 15:25:38": while it seems to fit
     * format 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'
     */
    //会报错，
    // 先注释掉试试
/*	private Date createTime;

	private Date updateTime;*/

    private String brandName;

    private String spuImg;

}